// 队伍平均等级大于该敌人 5级，该敌人经验金钱收益减半

Game_Troop.prototype.expTotal = function() {
    let rate = 1;
    const partyLevel = $gameParty.averageLevel();
    return this.deadMembers().reduce(function(r, enemy) {
        if (!!enemy.catchLevel())
            if(partyLevel > enemy.catchLevel() + 5)
                rate = 0.5;
        return r + Math.ceil(rate * enemy.exp());
    }, 0);
};


Game_Troop.prototype.goldTotal = function() {
    let rate = 1;
    const partyLevel = $gameParty.averageLevel();
    return this.deadMembers().reduce(function(r, enemy) {
        if (!!enemy.catchLevel())
            if(partyLevel > enemy.catchLevel() + 5)
                rate = 0.5;
        return r + Math.ceil(rate * enemy.gold());
    }, 0) * this.goldRate();
};